package com.ruoyi.mtAudit.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author
 * @Version 1.0
 */
public class MtAudit extends BaseEntity {

    private static final long serialVersionUID = 1L;
    private Long zjId;
    private String zjName;
    private String materialName;
    /**
     * 订单审核主键
     */
    private Long auditId;
    /**
     * 订单主键
     */
    @Excel(name = "订单主键")
    private Long orderId;
    /**
     * 公司主键
     */
    @Excel(name = "公司主键")
    private Long companyId;
    /**
     * 订单类型 0 采购订单   1  销售订单
     */
    @Excel(name = "订单类型 0 检验记录   1  检验报告")
    private String orderType;
    /**
     * 订单审核状态
     */
    @Excel(name = "订单审核状态")
    private String auditStatus;//0待审核,1是通过,2驳回
    /**
     * 订单审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "订单审核时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date auditTime;
    /**
     * 订单创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "订单创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date creatTime;
    /**
     * 审核人
     */
    @Excel(name = "审核人")
    private String auditBy;
    /**
     * 订单审核备注
     */
    @Excel(name = "订单审核备注")
    private String auditRemark;
    /**
     * 业务员
     */
    @Excel(name = "业务员")
    private String userName;
    /**
     * 业务员主键
     */
    @Excel(name = "业务员主键")
    private Long userId;
    /**
     * 供应商/顾客
     */
    @Excel(name = "供应商/顾客")
    private String deptName;
    /**
     * 供应商/顾客主键
     */
    @Excel(name = "供应商/顾客主键")
    private Long supplierId;
    private String value;
    /**
     * 订单编号
     */
    @Excel(name = "订单编号")
    private String orderNum;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getZjName() {
        return zjName;
    }

    public void setZjName(String zjName) {
        this.zjName = zjName;
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public Long getAuditId() {
        return auditId;
    }

    public void setAuditId(Long auditId) {
        this.auditId = auditId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(String auditStatus) {
        this.auditStatus = auditStatus;
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    public String getAuditBy() {
        return auditBy;
    }

    public void setAuditBy(String auditBy) {
        this.auditBy = auditBy;
    }

    public String getAuditRemark() {
        return auditRemark;
    }

    public void setAuditRemark(String auditRemark) {
        this.auditRemark = auditRemark;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    @Override
    public String toString() {
        return "MtAudit{" +
                "materialName='" + materialName + '\'' +
                ", auditId=" + auditId +
                ", orderId=" + orderId +
                ", companyId=" + companyId +
                ", orderType='" + orderType + '\'' +
                ", auditStatus='" + auditStatus + '\'' +
                ", auditTime=" + auditTime +
                ", creatTime=" + creatTime +
                ", auditBy='" + auditBy + '\'' +
                ", auditRemark='" + auditRemark + '\'' +
                ", userName='" + userName + '\'' +
                ", userId=" + userId +
                ", deptName='" + deptName + '\'' +
                ", supplierId=" + supplierId +
                ", value='" + value + '\'' +
                ", orderNum='" + orderNum + '\'' +
                '}';
    }

    public Long getZjId() {
        return zjId;
    }

    public void setZjId(Long zjId) {
        this.zjId = zjId;
    }
}
